import type { ArticleDetail } from "@/types/detail";
import type { ResType } from "@/types/global";
import http from "@/utils/http";

/**
 * 获取文章详情的接口方法
 * @param id path参数 文章id
 */
export const getArticleDetailAPI = (id: string) =>
  http.get<any, ResType<ArticleDetail>>(`/articles/${id}`);
